#ifndef SK_PRINT_BILL_H
#define SK_PRINT_BILL_H
#include <QString>
#include <QSqlQuery>
#include <QPrinter>
#include <QPainter>
#include <QMap>

class sk_print_bill
{
public:
    sk_print_bill();
    ~sk_print_bill();

    QString set_invoice_no(QString);
    void print_out();

private slots:

    QStringList get_items(QString);

private:

    QString invoice_no;//发票号

    QSqlQuery *qro, *qrm;

    QPrinter *prt;
    QPainter *pnt;

    float ptScale;  //for printer, mm to point covnert.
    float fScale;

    QMap<QString,QString> mp_page;   //页面打印数据

};

#endif // SK_PRINT_BILL_H
